<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>

    </head>
    <body>
        <div class="'product"></div>
        <script>
            server.on('req',(req,res)=>{
                req.url
            })
            $ajax('http://localhost:222/').then((res)=>{
                let dataArr = JSON.parse(res)
                for(let i = 0; i <dataObj.length;i++){
                $('.product ul').append(
                    `<li>${dataArr[i].name}<br><br>${dataArr[i].size}<img src="${dataArr[i].iamge}"></li>`
                )
            }
            })
            
       

        </script>
    </body>
</html>